/** CODE EVAL::Easy [Even Numbers]
 *	Deterine whether a number is even or not
 *	Program should accept as its first argument path to filename	
 *
 *	Michael Pio Arroyo
 */

#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <string>

int main(int argc, char** argv) {
	std::ifstream file;
	std::string line;
	file.open(argv[1]);
	while(std::getline(file,line)) {
		int i = atoi(line.c_str());
		if((i%2) != 0)
			putchar('0');
		else
			putchar('1');
		putchar('\n');
	}
	file.close();
	return 0;
}